package com.byedu.domain.course;

import java.io.Serializable;

/**
 * 专题
 * Created by Luo on 2017-04-25.
 */
public class LibraryDO implements Serializable {
 
	private static final long serialVersionUID = -2283554217959521918L;

    private String libraryType;
	/*专题编号*/
    private Integer id;
    /*专题名称*/
    private String name;
    /*课程编号*/
    private Integer courseId;
    /*试用的题目数量*/
    private int trialNum;
    /*题库类型*/
    private String libType;
    /*题库类型*/
    private int sortNo;

    /*题库类型*/
    private int questionNum;

    public LibraryDO () {}
    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public int getTrialNum() {
        return trialNum;
    }

    public void setTrialNum(int trialNum) {
        this.trialNum = trialNum;
    }

    public String getLibType() {
        return libType;
    }

    public void setLibType(String libType) {
        this.libType = libType;
    }

    public String getLibraryType() {
        return libraryType;
    }

    public void setLibraryType(String libraryType) {
        this.libraryType = libraryType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LibraryDO libraryDO = (LibraryDO) o;

        if (id != null ? !id.equals(libraryDO.id) : libraryDO.id != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "LibraryDO{" +
                "libraryType='" + libraryType + '\'' +
                ", id=" + id +
                ", name='" + name + '\'' +
                ", courseId=" + courseId +
                ", trialNum=" + trialNum +
                ", libType='" + libType + '\'' +
                '}';
    }

    public int getQuestionNum() {
        return questionNum;
    }

    public void setQuestionNum(int questionNum) {
        this.questionNum = questionNum;
    }

    public int getSortNo() {
        return sortNo;
    }

    public void setSortNo(int sortNo) {
        this.sortNo = sortNo;
    }
}
